// 解决 sockjs-client 等库的兼容性问题
if (typeof global === 'undefined') {
  var global = typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {};
}
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'  // 补充此行：导入根组件  

export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif

if (typeof global === 'undefined') {
  var global = typeof window !== 'undefined' ? window : self;
  }
